<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <?php
            if(isset($_POST['option']))
            {
                include("../Service/WebClass/report/CampaignService.php");

                $CampaignService = new CampaignService();
                $message = $CampaignService->updateAllCampaigns();
                echo "<script language='javascript'>alert(\"".$message."\");</script>";
            }
        ?>
        <title>AD Listing</title>
        <link rel="stylesheet" href="../css/common.css" type="text/css" />
        <script language="JavaScript" src="../js/InputCheck.js" type="text/javascript"></script>
    </head>

    <body>
        <form enctype="multipart/form-data" name="mainform" method="post">
        <input type="hidden" name="option" value="upAll"/>
            <table width="100%" border="0" cellpadding="4" cellspacing="0" class="tbl">
                <tr>
                    <td align="left">		</td>
                    <td align="right">

                    <input type="submit" class="btn save" value="" onclick="return checkSelect_campUpAll();"></td>
                </tr>
                <tr>
                    <td class="td9 top" align="left" width="200">
                        <input type="checkbox" name="change_status" id="change_status" value="1" >
                        <?php
                                if($_POST['change_status'] == "1")
                                {
                                    echo "<script>document.mainform.change_status.checked=true;</script>";
                                }
                            ?>
                    <label for="change_status">掲載オン/オフを切り替える</label>		</td>
                    <td class="td4 border">
                        <input type="radio" name="status" id="status1" value="1" ><label for="status1">オン</label>
                    <input type="radio" name="status" id="status0" value="0" checked><label for="status0">オフ</label>
                    </td>
                    <?php
                                if($_POST['status'] == "0")
                                {
                                    echo "<script>document.mainform.status[1].checked=true;</script>";
                                }
                                else
                                {
                                    echo "<script>document.mainform.status[0].checked=true;</script>";
                                }
                            ?>
                </tr>
            </table>

        </form>						<!-- end of main area -->

        </td>
        <td class="frame_middle_right"></td>
        </tr>
        </table>

        </td>
        <td width="20"><br></td>
        </tr>
        </table>
        <table width="100%" border="0" cellpadding="2" cellspacing="0">
            <tbody><tr>
                    <td align="center">
                        <input class="btn close" onclick="javascript:self.close();" type="button">
                    </td>
                </tr>
        </tbody></table>
    </body>
</html>
